package com.jason.ordermd.mapper;

import com.jason.ordermd.domain.OrderDomain;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Component;

@Component
public interface OrderMapper {
    @Insert("INSERT INTO T_ORDER(account_id,product_id,order_status) VALUES(#{accountId},#{productId},#{orderStatus})")
    @Options(useGeneratedKeys=true, keyProperty="orderId", keyColumn="order_id")
    public void insertOrder(OrderDomain orderDomain);
}
